/*
 * N900DevStatus.h
 *
 *  Created on: Aug 22, 2016
 *      Author: ubuntu
 */

#ifndef N900_N900DEVSTATUS_H_
#define N900_N900DEVSTATUS_H_

#include <time.h>

#define N900_CHECK_TIME	1
#define N900_CAR_TIME	2
#define N900_MAX_TIME	3

class N900DevStatus {
public:
	N900DevStatus(unsigned int obdid);
	virtual ~N900DevStatus();

	unsigned int getObdid();
	time_t getTime();
	time_t getMaxTime();
	time_t getCheckTime();
	time_t getCarTime();
	void setTime(time_t, int);
	void setSpeed(int speed);
	int getSpeed();
	void enableUpdate();
	void disableUpdate();
	bool isUpdate();

private:

protected:
	unsigned int m_obdid;
	time_t m_time;
	time_t check_time;	// 体检时间
	time_t car_time;
	time_t max_time;
	int m_speed;
	int m_version;
	bool m_update;
};

#endif /* N900_N900DEVSTATUS_H_ */
